﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Zgq.CommonTools
{
    /// <summary>
    /// 视图字段特性
    /// </summary>
    public class C5ViewFieldAttribute : Attribute
    {
        /// <summary>
        /// 视图关联特性标记名
        /// </summary>
        public string RelTag { get; set; }

        /// <summary>
        /// 数据库字段名
        /// </summary>
        public string ReturnFiled { get; set; }

        /// <summary>
        /// 空值默认值
        /// </summary>
        public object IsNull { get; set; }

        /// <summary>
        /// 条件字段
        /// </summary>
        public string WhereFiled { get; set; }

        /// <summary>
        /// CASE WHEN值（条件字段:值;?? ELSE值;）
        /// </summary>
        public string CaseWhen { get; set; }

        /// <summary>
        /// 自定义SQL（可追加SQL或者自己写关联）
        /// </summary>
        public string OtherSql { get; set; }

    }
}
